package reflect;

public class Student {
    private String name;
    private int age;
    private char gender;


    // 无参
    public Student(){

    }

    // 一个参数
    public Student(String name){
        this.name = name;
    }

    public Student(int age){
        this.age = age;
    }

    public Student(char gender){
        this.gender = gender;
    }

    // 有参
    public Student(String name, int age, char gender){
        this.name = name;
        this.age = age;
        this.gender = gender;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", gender=" + gender +
                '}';
    }
}
